import { ToyReact, Component } from "./ToyReact";

class MyComponent extends Component {
  render() {
    console.log(6);
    return (
      <div>
        <span>hello</span>
        <span> world</span>
        <span>{{name:1}}</span>
        <div>{this.children}</div>
      </div>
    );
  }
}

let a = (
  <MyComponent id="ida" class="box">
    <div>1231</div>
  </MyComponent>
);
debugger;
ToyReact.render(a, document.body);
